package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.WwCorp;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WwCorpMapper {
    int deleteById(@Param("id") Long id);

    int insert(WwCorp record);

    int insertSelective(WwCorp record);

    WwCorp selectById(@Param("id") Long id);

    WwCorp selectByCorpId(@Param("merId") Long merId, @Param("corpId") String corpId);

    List<WwCorp> selectByMerId(@Param("merId") Long merId);

    WwCorp selectByEntId(@Param("merId") Long merId, @Param("entId") String entId);

    int updateByIdSelective(WwCorp record);

    int updateById(WwCorp record);
}